﻿<?php
include("inc/global.inc");
$hover=7;
$p_rs=mysql_query("select * from hot_pro where id=".$_GET['id']);
$p_row=mysql_fetch_array($p_rs);
mysql_free_result($p_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?=$p_row['p_title']?></title>

<meta name="keywords" content="<?=$p_row['p_title']?>,<?=$p_row['p_title']?>销售商，<?=$p_row['p_list']?>，<?=$p_row['p_keyword']?>" />

<meta name="description" content="<?=$p_row['m_cname']?><?php if($p_row['catalog_id2']){echo "经营".$p_row['p_title'];}?> ，<?=$p_row['p_keyword']?>，<?=$p_row['p_list']?>,<?=$p_row['p_title']?>热点商品销售商"/>

<link href="/<?=$template?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<link href="/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="ban1">
<div class="flash">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="960" height="194">
    <param name="movie" value="/flash/13.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/flash/13.swf" width="960" height="194" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" wmode="transparent"  value="transparent"></embed>
  </object>
</div>
</div>
<div class="path size11"><a href="/">首页</a> >> <a href="/hot-list/1.htm">热门产品展示</a> >><?php if($p_row['p_list']){?> <a href="/hot-group/<?=$p_row[p_list_id]?>/1.htm"><?=$p_row['p_list']?></a> >><?php }?> <?=$p_row['p_title']?></div>
<div class="left">
<?php include("inc/left2.php")?>
</div>
<div class="ad"></div>
<div class="right">
<div class="rightbox">
<div class="profile">
<div class="m1">
<div class="name size14"><?=$p_row['p_title']?></div>
<div class="propic">
<?php if(trim($p_row['picture'])){?><a href="http://www.sandib2b.cn/upfile/<?=$p_row['picture']?>" target="_blank"><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="236" height="178" alt="<?=$p_row['p_title']?>"></a><?php }else{?><img src="/images/prono134.gif" width="236" height="178"><?php }?>
<div class="but">
<ul><li class="a2">
<A href="#" style="CURSOR: hand" onclick="javascript:window.external.AddFavorite('http://<?=$_SERVER['HTTP_HOST']?>/hot/<?=$p_row['id']?>.htm','<?=$p_row['p_title']?>')">&nbsp;收藏此信息</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.sandib2b.cn/upfile/<?=$p_row['picture']?>" target="_blank">图片放大</a>
</li>
</ul>
</div>
</div>
<div class="proinfo">
  <table>
    <tbody>
	<?php if(trim($p_row['p_pinpai'])){?>
      <tr>
        <td width="146" height="20" align="right">品牌：</td>
        <td width="233" height="20"><?=$p_row['p_pinpai']?></td>
      </tr>
	<?php }?>
	<?php if(trim($p_row['p_xinghao'])){?>
      <tr>
        <td height="20" align="right">型号：</td>
        <td height="20"><?=$p_row['p_xinghao']?></td>
      </tr>
	<?php }?>
	<?php if(trim($p_row['p_guige'])){?>
      <tr>
        <td height="20" align="right">规格：</td>
        <td height="20"><?=$p_row['p_guige']?></td>
      </tr>
	 <?php }?>
	<?php if(trim($p_row['p_price'])){?>
      <tr>
        <td height="20" align="right">价格：</td>
        <td height="20"><?=$p_row['p_price']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_baozhuang'])){?>
      <tr>
        <td height="20" align="right">包装：</td>
        <td height="20"><?=$p_row['p_baozhuang']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_shuliang'])){?>
      <tr>
        <td height="20" align="right">总数量：</td>
        <td height="20"><?=$p_row['p_shuliang']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_cailiao'])){?>
      <tr>
        <td height="20" align="right">材料：</td>
        <td height="20"><?=$p_row['p_cailiao']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_changdi'])){?>
      <tr>
        <td height="20" align="right">产地：</td>
        <td height="20"><?=$p_row['p_changdi']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_jhtime'])){?>
      <tr>
        <td height="20" align="right">交货期：</td>
        <td height="20"><?=$p_row['p_jhtime']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_renzheng'])){?>
      <tr>
        <td height="20" align="right">产品认证：</td>
        <td height="20"><?=$p_row['p_renzheng']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row[p_crz])){?>
      <tr>
        <td height="20" align="right">企业认证：</td>
        <td height="20"><?=$p_row['p_crz']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_minorder'])){?> 
      <tr>
        <td height="20" align="right">最小起定量：</td>
        <td height="20"><?=$p_row['p_minorder']?></td>
      </tr>
	 <?php }?>
	 <?php if(trim($p_row['p_paytype'])){?> 
      <tr>
        <td height="20" align="right">付款方式：</td>
        <td height="20"><?=$p_row['p_paytype']?></td>
      </tr>
	 <?php }?>
	  <tr>
        <td height="20" align="right">更新时间：</td>
        <td height="20"><?=date("Y-m-d",strtotime($p_row['p_addtime']))?></td>
      </tr>
    </tbody>
  </table>
</div>
<div class="onl"></div>
</div>
<div class="infobox">
<div class="size14 b">&nbsp;&nbsp;产品介绍</div>
<div id="txt" class="info" style="word-break:break-all; ">
<?=unhtml($p_row['p_info'])?>
</div>
</div>
<div class="m1">
<div class="send_butt"><a href="http://www.sandib2b.cn/inquire/index.php?to_id=<?=$m_row['id']?>&subject=<?=urlencode($p_row['p_title'])?>" target="_blank"><img src="/images/iprice.gif" width="159" height="45" border="0"></a>  <a href="http://www.sandib2b.cn/member/tuoguan/buy.php?id=<?php echo $m_row['id'];?>&type=1" target="_blank"><img src="http://www.sandib2b.cn/Supply/images/contact.gif" alt="联系方式-<?=$m_row['m_cname']?>" width="157" height="43" border="0" /></a></div>
</div>
  <div class="onl"></div>
  </div>
</div>
<div class="rightbox">
<div class="path1 b">
<div class=moreright><A class="size11" href="/hot-list/1.htm">更多</A> </div>
相关产品</div>
<div class="probox">

<?php
$pl_rs=mysql_query("select id,picture,p_title from hot_pro where member_id=".$member_id." and p_list_id=".$p_row['p_list_id']." and p_sh=1 limit 10");
while($pl_row=mysql_fetch_array($pl_rs)){
?>
<div class="prolist">
<a href="<?=$pl_row['id']?>.htm"><?php if($pl_row['picture']){?><img src="http://img.sandib2b.cn/<?=$pl_row['picture']?>" width="100" height="100" alt="<?=$pl_row['p_title']?>" /><?php }else{?><img src="/images/InfoPic.gif" width="100" height="100" alt="<?=$pl_row['p_title']?>"/><?php }?></a>
  <dt><a href="<?=$pl_row['id']?>.htm" title="<?=$pl_row['p_title']?>"><?=mb_substr($pl_row['p_title'],0,9,'utf-8')?></a></dt>
</div>
<?php }mysql_free_result($pl_rs);?>

<div class="onl"></div>
</div>
</div>
</div>
<div class="onl"></div>
</div>
<?php include("inc/foot.php");?>
</body>
</html>

<script>
function toBreakWord(intLen){
var obj=document.getElementById("txt");
var strContent=obj.innerHTML;
var strTemp="";
while(strContent.length>intLen){
strTemp+=strContent.substr(0,intLen)+"<br>";
strContent=strContent.substr(intLen,strContent.length);
}
strTemp+="<br>"+strContent;
obj.innerHTML=strTemp;
}
if(document.getElementById  &&  !document.all)  toBreakWord(90)
</script>
